package hcn.protocol.phr.healthrecord;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.List;

/**
 * 健康档案:体检记录详情 返回数据
 *
 * @author lidq
 */
@XmlRootElement(name = "response")
@XmlAccessorType(XmlAccessType.FIELD)
public class ExaminationDetailResultBean implements Serializable {

    private static final long serialVersionUID = 5819805100719817971L;

    private Integer code;

    private String msg;

    private Body body;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Body getBody() {
        return body;
    }

    public void setBody(Body body) {
        this.body = body;
    }

    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Body {
        // 用户标识
        private String            mpiid;
        // 医生code
        private String            orgCode;
        // 医院名称
        private String            orgName;
        // 体检综述
        private String            review;
        // 医生建议
        private String            doctorAdvice;
        @XmlElementWrapper(name = "deptProjectList")
        private List<DeptProject> deptProject;

        public String getMpiid() {
            return mpiid;
        }

        public void setMpiid(String mpiid) {
            this.mpiid = mpiid;
        }

        public String getOrgCode() {
            return orgCode;
        }

        public void setOrgCode(String orgCode) {
            this.orgCode = orgCode;
        }

        public String getOrgName() {
            return orgName;
        }

        public void setOrgName(String orgName) {
            this.orgName = orgName;
        }

        public String getReview() {
            return review;
        }

        public void setReview(String review) {
            this.review = review;
        }

        public String getDoctorAdvice() {
            return doctorAdvice;
        }

        public void setDoctorAdvice(String doctorAdvice) {
            this.doctorAdvice = doctorAdvice;
        }

        public List<DeptProject> getDeptProject() {
            return deptProject;
        }

        public void setDeptProject(List<DeptProject> deptProject) {
            this.deptProject = deptProject;
        }
    }
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class DeptProject {
        // 体检科室名称
        private String medicaldeptname;
        // 科室小结
        private String deptconclusion;
        @XmlElementWrapper(name = "projectList")
        private List<Project> project;

        public String getMedicaldeptname() {
            return medicaldeptname;
        }

        public void setMedicaldeptname(String medicaldeptname) {
            this.medicaldeptname = medicaldeptname;
        }

        public String getDeptconclusion() {
            return deptconclusion;
        }

        public void setDeptconclusion(String deptconclusion) {
            this.deptconclusion = deptconclusion;
        }

        public List<Project> getProject() {
            return project;
        }

        public void setProject(List<Project> project) {
            this.project = project;
        }
    }

    public static class Project {
        // 项目名称
        private String name;
        // 项目结果
        private String result;
        // 参考范围
        private String reference;
        // 单位
        private String unit;
        // 箭头标识
        private String memo;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getResult() {
            return result;
        }

        public void setResult(String result) {
            this.result = result;
        }

        public String getReference() {
            return reference;
        }

        public void setReference(String reference) {
            this.reference = reference;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getMemo() {
            return memo;
        }

        public void setMemo(String memo) {
            this.memo = memo;
        }
    }
}
